package com.yutou.plug;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * 这个就是jar包里面的Activity
 */
public class ActivityTest extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LinearLayout layout=new LinearLayout(this);
        TextView textView=new TextView(this);
        textView.setText("测试服务");
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(ActivityTest.this,ServicesTest.class);
                startService(intent);
            }
        });
        layout.addView(textView);
        setContentView(layout);
    }
    public String getAppData(){
            return "反射成功获取到值:)";
    }
}